home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9203 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.3 KB  |  38 lines

  1. Newsgroups: comp.lang.c
  2. Path: uu4news.netcom.com!zodiac!szh
  3. From: szh@zcon.com (Syed Zaeem Hosain)
  4. Subject: Re: Newbie doesn't understand compiler error
  5. Message-ID: <1996Mar8.172829.26015@zcon.com>
  6. Sender: szh@zcon.com (Syed Zaeem Hosain)
  7. Nntp-Posting-Host: zodiac
  8. Reply-To: szh@zcon.com
  9. Organization: Z Consulting Group
  10. References: <4hoffl$l74@aphex.direct.ca>
  11. Date: Fri, 8 Mar 1996 17:28:29 GMT
  12.  
  13. In article <4hoffl$l74@aphex.direct.ca>, etoivane@direct.ca (Ed Toivanen) writes:
  14. >
  15. >>main( int argv, char *argc[] )  <<- Compiler states "Syntax error at or near
  16. >
  17. >Try 
  18. > main(int argc, char* argv[])
  19. >
  20. >That should fixn things up.
  21.  
  22. No, that is not the error. The variables can be called anything - it is
  23. merely common practice that the first is called argc, and the second is
  24. argv. But this is not a strict requirement of any kind.
  25.  
  26. I don't really have a suggestion for a fix - more info than this is
  27. needed (I do not see the original post that asked the question about
  28. this error).
  29.  
  30.                                 Z
  31.  
  32.  
  33. -- 
  34. -------------------------------------------------------------------------
  35. | Syed Zaeem Hosain          P. O. Box 610097            (408) 441-7021 |
  36. | Z Consulting Group        San Jose, CA 95161             szh@zcon.com |
  37. -------------------------------------------------------------------------
  38.